<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>传值展示</title>
</head>
<body>

    <!--item 列表/字典-->
    {% for item in var %}
    <p>
        {% if item.gender == 'male' %}
            {{ item.name }}先生<br/>
        {% else %}
            {{ item.name }}女士<br/>
        {% endif %}
    </p>


    {% endfor %}




</body>
</html>